package com.threegroup.admin.dao;

import com.threegroup.admin.entity.CategoryEntity;
import com.threegroup.common.dto.CategoryDTO;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CategoryEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CategoryEntity record);

    int insertSelective(CategoryEntity record);

    CategoryEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CategoryEntity record);

    int updateByPrimaryKey(CategoryEntity record);

    List<CategoryEntity> queryAll();

    List<CategoryDTO> queryPageBy(@Param("order") String order,@Param("orderField")  String orderField,@Param("name")  String name);
}